package com.example.config;

import com.example.client.netty.DefaultNettyClientFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MQCLientConfig {

    @Bean
    public DefaultNettyClientFactory defaultNettyClientFactory(){
        DefaultNettyClientFactory defaultNettyClientFactory = new DefaultNettyClientFactory();
        defaultNettyClientFactory.setIp("127.0.0.1");
        defaultNettyClientFactory.setPort(9000);
        return defaultNettyClientFactory;
    }
}
